package com.baidu.controller;
import com.baidu.service.NoteService;
import com.baidu.utils.ResultResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
/**
 * @Description: 短信控制层
 * @Author: 王雨超
 * @Date: 2021/12/13 16:33
 */
@RestController
@RequestMapping("/note")
@SuppressWarnings({"all"})
public class NoteController{
    @Autowired
    private NoteService noteService;
    /**
    *@Description: 短信方法
    *@Author: 王雨超
    *@Date: 2021/12/13
    *@Param: map
    *@return: map
    */
    @PostMapping("/sendNote")
    public ResultResponse sendMessage(@RequestBody HashMap<String, Object> map){
        System.err.println(map);
        return noteService.sendMess(map);
    }

}
